home *** CD-ROM | disk | FTP | other *** search
/ Aminet 45 / Aminet 45 (2001)(GTI - Schatztruhe)[!][Oct 2001].iso / Aminet / dev / gui / FoxGuiSource.lha / FoxLibSource / FoxGuiTools.h < prev    next >
C/C++ Source or Header  |  2001-07-07  |  4KB  |  72 lines

  1. /* FoxGUI - The fast, flexible, free Amiga GUI system
  2.     Copyright (C) 2001 Simon Fox (Foxysoft)
  3.  
  4. This library is free software; you can redistribute it and/ormodify it under the terms of the GNU Lesser General PublicLicense as published by the Free Software Foundation; eitherversion 2.1 of the License, or (at your option) any later version.This library is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNULesser General Public License for more details.You should have received a copy of the GNU Lesser General PublicLicense along with this library; if not, write to the Free SoftwareFoundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  5. Foxysoft: www.foxysoft.co.uk      Email:simon@foxysoft.co.uk                */
  6.  
  7.  
  8. #include "guisys.h"
  9.  
  10. /****************************************************************************************************
  11.  * This module is for functions that are very general in nature and of potential use to more than   *
  12.  * one gui module.                                                                                  *
  13.  ****************************************************************************************************/
  14.  
  15. #ifdef AMIGA
  16.     #define OFFSET __far
  17. #else
  18.     #define OFFSET
  19. #endif
  20.  
  21. BOOL OFFSET Diagnostic(char *fn, short enter, BOOL succeed);
  22.  
  23. BYTE OFFSET GetBackCol(void *Parent);
  24.  
  25. BOOL OFFSET GadInWinList(struct Gadget *gad, struct Window *w);
  26.  
  27. void OFFSET EnableGadget(struct Gadget *gad, struct Window *win, BOOL redraw);
  28. void OFFSET DisableGadget(struct Gadget *gad, struct Window *win, BOOL redraw);
  29.  
  30. struct IntuiText OFFSET *SetLast(struct IntuiText *it);
  31.  
  32. void OFFSET UnclipGuiWindow(GuiWindow *gw);
  33. struct Region OFFSET *ClipGuiWindow(GuiWindow *gw, long minx, long miny, long maxx, long maxy);
  34.  
  35. TreeItem *FindPreviousItem(TreeItem *ti);
  36. void FreeItemTree(TreeItem *ti, TreeItem *masterparent, BOOL refresh);
  37. int OFFSET CalcItemTop(TreeItem *ti);
  38. void OFFSET FindMaxSizes(TreeItem *root, int *maxlen, int *maxtop, int *top);
  39. void OFFSET ResizeHorizontalScroller(ListBox *lb, int x, int y, int width, int height, double xfactor, double yfactor, BOOL eraseold);
  40. void OFFSET DestroyVerticalScroller(ListBox *lb, BOOL refresh);
  41. void OFFSET DestroyHorizontalScroller(ListBox *lb, BOOL refresh);
  42. void OFFSET MakeVerticalScroller(ListBox *lb, int (*ScrollUpFn)(PushButton*), int (*ScrollDownFn)(PushButton*));
  43. void OFFSET DisableScroller(Scroller *sc);
  44. void OFFSET MakeHorizontalScroller(ListBox *lb, int (*ScrollLeftFn)(PushButton*), int (*ScrollRightFn)(PushButton*));
  45.  
  46. void OFFSET SortITextList(struct IntuiText **FirstItem, int flags);
  47.  
  48. unsigned short OFFSET GetFontHeight(GuiWindow *win);
  49.  
  50. void OFFSET FakeInputEvent(LONG eventclass, LONG Code, LONG Qualifier, LONG x, LONG y, struct Window *Window);
  51. void OFFSET DeActivateStrGad(void);
  52.  
  53. int OFFSET TopWindowPixel(struct Screen *Screen, GuiWindow *Window);
  54.  
  55. void OFFSET MakeBevel(struct Border *light, struct Border *dark, short *points, int left,
  56.         int top, int width, int height, BOOL raised);
  57.  
  58. void OFFSET MakeDownArrow(struct Border *arrow, int col);
  59. void OFFSET MakeUpArrow(struct Border *arrow, int col);
  60.  
  61. void OFFSET FindScrollerValues(unsigned short total, unsigned short displayable,
  62.         unsigned short top, short overlap, unsigned short *body, unsigned short *pot);
  63. unsigned short OFFSET FindScrollerTop(unsigned short total, unsigned short displayable, unsigned short pot);
  64.  
  65. void OFFSET AreaColFill(struct RastPort *rp, int left, int top, int width, int height, int col);
  66. void OFFSET AreaBlank(struct RastPort *rp, int left, int top, int width, int height);
  67.  
  68. void OFFSET UnTruncateIText(struct IntuiText *IText, char *Original);
  69. void OFFSET TruncateIText(struct IntuiText *IText, char *Original, int MaxLen, int flags);
  70.  
  71. struct TextAttr OFFSET *CopyFont(struct TextAttr *font);
  72.